package com.cheng.operation;

import com.cheng.common.exception.CommonException;
import com.cheng.data.vo.ReqPageInfoVO;
import com.cheng.data.vo.RespPageInfoVO;
import com.cheng.data.vo.RoleInfoVO;

/**
 * @author: ChengJW
 * @date: 2021/11/14 12:42
 * @version: 1.0
 * @description: 角色信息业务逻辑处理
 */
public interface RoleInfoOperation {


    /**
    * @author: ChengJW
    * @params: [pageInfoVO]
    * @return: com.cheng.data.vo.RespPageInfoVO
    * @date: 2021/11/15
    * @description: 查询角色列表信息，并分页按照layui统一格式返回
    */
    RespPageInfoVO queryRoleInfoList(ReqPageInfoVO pageInfoVO) throws CommonException;

    /**
    * @author: ChengJW
    * @params: [roleInfoVO]
    * @return: void
    * @date: 2021/11/17
    * @description: 新增角色信息
    */
    void insertRoleInfo(RoleInfoVO roleInfoVO) throws CommonException;

    /**
    * @author: ChengJW
    * @params: []
    * @return: com.cheng.data.vo.RoleInfoVO
    * @date: 2021/11/17
    * @description: 根据角色 id 查询角色信息
    */
    RoleInfoVO queryRoleInfoById(String roId) throws CommonException;

    /**
    * @author: ChengJW
    * @params: [roleInfoVO]
    * @return: void
    * @date: 2021/11/18
    * @description: 修改角色信息
    */
    void updateRoleInfo(RoleInfoVO roleInfoVO) throws CommonException;

    /**
     * @author: ChengJW
     * @params: [roleInfoVO]
     * @return: void
     * @date: 2021/11/18
     * @description: 删除角色信息
     */
    void deleteRoleInfo(RoleInfoVO roleInfoVO) throws CommonException;
}
